// @import '../../styles/global.less';
.k-modal {
	.k-modal-wrap {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 101;
		overflow: auto;
		outline: 0;
		-webkit-overflow-scrolling: touch;
	}
	.k-modal-mask {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: rgba(55, 55, 55, .6);
		height: 100%;
		z-index: 100;
		overflow: hidden;
	}
	.k-modal-inner {
		position: relative;
		background-color: #fff;
		z-index: 101;
		outline: 0;
		border-radius: 16px;
		top: 50%;
		transform: translateY(-50%);
		transform-origin: center;
		overflow: hidden;
		margin: 0 auto;
		box-shadow: 0 0 10px 3px rgba(55, 55, 55, .2);
		width: 620px; // animation: fadeIn .5s ease-in-out;
	}
	.k-modal-content {
		position: relative;
		border: 0;
		background-clip: padding-box;
		height: 100%;
		overflow: hidden;
		.k-modal-close {
			position: absolute;
			cursor: pointer;
			font-size: 40px;
			width: 40px;
			height: 40px;
			text-align: center;
			line-height: 40px;
			top: 20px;
			right: 20px;
			transition: all .3s ease-in-out;
			z-index: 10;
			&:hover {
				color: #c20;
				// transform: rotate(360deg);
			}
		}
		.k-modal-header {
			padding: 40px;
			line-height: 44px;
			font-size: 36px;
			font-weight: 500;
			user-select: none;
			text-align: center;
			.k-modal-header-inner {}
		}
		.k-modal-body {
			padding: 0px 40px 0px 40px;
			font-size: 28px;
			margin-bottom: 40px;
			line-height: 34px;
			height: calc(100% - 43px - 45px);
			overflow: auto;
			box-sizing: border-box;
		}
		.k-modal-footer {
			padding: 0 30px 40px 30px;
			display: flex;
			justify-content: space-between;
			width: 100%;
			box-sizing: border-box;
			.k-btn {
				width: 260px;
			}
		}
	}
}

.k-modal-can-move {
	.k-modal-header {
		cursor: move;
	}
	.k-modal-inner {
		position: absolute;
	}
}

.k-modal-center {
	.k-modal-wrap {
		text-align: center;
		&::before {
			display: inline-block;
			width: 0;
			height: 100%;
			vertical-align: middle;
			content: '';
		}
	}
	.k-modal-inner {
		top: 0;
		display: inline-block;
		text-align: left;
		vertical-align: middle;
	}
}

.k-modal-max {
	.k-modal-inner {
		height: 100%;
		width: 100%;
		top: 0;
		left: 0;
		border-radius: 0;
		.k-modal-footer {
			position: absolute;
			width: 100%;
			bottom: 0;
			left: 0;
			background: #fff;
		}
	}
}

.k-toast {
	.k-modal-inner {
		width: 620px;
		background: #fff;
		border-radius: 16px;
		// padding: 16px;
		overflow: hidden;
	}
	.k-toast-header {
		// .k-toast-icon {
		// 	font-size: 28px;
		// 	margin-right: 12px;
		// 	float: left;
		// }
		padding: 40px 40px 0 40px;
		font-size: 32px;
		font-weight: 500;
		user-select: none;
		text-align: center;
		.k-toast-title {
			line-height: 44px;
			// font-size: 36px;
			// font-weight: 500;
		}
	}
	.k-toast-content {
		padding: 40px 40px 0 40px;
		font-size: 28px;
		line-height: 40px;
		// margin-bottom: 40px;
	}
	.k-toast-footer {
		// float: right;
		text-align: center;
		padding: 40px 24px 40px 24px;
		display: flex;
		justify-content: space-around;
		.k-btn {
			width: 260px;
			// margin-left: 8px;
		}
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fade-out {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.k-modal-fade-enter-active {
	animation: fade-in .4s linear;
}

.k-modal-fade-leave-active {
	animation: fade-out .4s linear;
}

@keyframes k-modal-zoom-in {
	from {
		opacity: 0;
		transform: scale(1.185) translateY(-50%);
	}
	to {
		transform: scale(1) translateY(-50%);
		opacity: 1;
	}
}

@keyframes k-modal-zoom-out {
	from {
		transform: scale(1) translateY(-50%);
		opacity: 1;
	}
	to {
		opacity: 0;
		transform: scale(.85) translateY(-50%);
	}
}

.k-modal-zoom-enter-active {
	animation: k-modal-zoom-in .5s;
}

.k-modal-zoom-leave-active {
	animation: k-modal-zoom-out .3s;
}